package org.qqcui.designpattern.patterns.mediator;

/**
 * 中介者抽象类
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/5/6 17:08
 **/
public abstract class Mediator {

    /**
     * 注册同事类
     * @param colleagueName
     * @param colleague
     */
    public abstract void registerColleague(String colleagueName, Colleague colleague);

    /**
     * 获取消息
     * @param stateChange
     * @param colleagueName
     */
    public abstract void getMessage(int stateChange, String colleagueName);

    /**
     * 发送消息
     */
    public abstract void sendMessage();
}
